import 'dart:io';
import 'package:get/get.dart';

// 全局响应数据
class GlobalConfigService extends GetxService {
  /// 是否登录
  var isLogin = true.obs;

  /// 发布渠道
  var channel = "".obs;

  /// 是否 ios
  var isIOS = false.obs;

  Future<GlobalConfigService> init() async {
    channel.value = "huawei";
    isIOS.value = Platform.isIOS;
    return this;
  }

  @override
  void onInit() {
    super.onInit();
  }

  /// 设置登录状态
  void setLoginStatus(e) {
    isLogin.value = e;
  }
}
